package a.j.b;

import a.c.bb;
import a.c.e;
import a.d.w;
import a.j.g;
import a.j.*;

import java.util.Collection;

public class b
  extends a
{
  private int g = -1;
  private f.p_ h;
  private f.n_ i;
  private boolean j = true;
  private boolean k = true;
  public static boolean l;
  
  public boolean a(double paramDouble1, double paramDouble2)
  {
    int i1 = f.Wb;
    boolean bool = f.Vb;
    this.g = -1;
    this.h = null;
    this.i = null;
    if (i1 == 0) {
      if (this.e != null)
      {
        if (i1 != 0) {
          break label296;
        }
        if (this.f != null)
        {
          sc localsc = new sc(this.e, paramDouble1, paramDouble2, true);
          e locale = a(localsc);
          if (i1 != 0) {
            break label299;
          }
          if (locale != null)
          {
            g localg = this.e.a();
            if (i1 != 0) {
              break label299;
            }
            if ((localg != null) && (a(localg, locale) == this.f))
            {
              if ((i1 != 0) || (localsc.w()))
              {
                localObject = localsc.p();
                int m = 0;
                int n = this.f.x();
                do
                {
                  if (m >= n) {
                    break;
                  }
                  if ((i1 == 0) && (bool)) {
                    break label204;
                  }
                  if (this.f.b(m) == localObject)
                  {
                    this.g = m;
                    return true;
                  }
                  m++;
                } while (!bool);
              }
              if (i1 != 0) {
                break label296;
              }
              label204:
              Object localObject = this.f.eb().a(paramDouble1, paramDouble2);
              if (localObject != null)
              {
                if (i1 != 0) {
                  break label246;
                }
                if (a((f.p_)localObject, paramDouble1, paramDouble2))
                {
                  this.h = ((f.p_)localObject);
                  return true;
                }
              }
              label246:
              f.n_ localn_ = this.f.eb().b(paramDouble1, paramDouble2);
              if (i1 != 0) {
                break label299;
              }
              if (localn_ != null)
              {
                if (i1 != 0) {
                  break label300;
                }
                if (a(localn_, paramDouble1, paramDouble2))
                {
                  this.i = localn_;
                  return true;
                }
              }
            }
          }
        }
      }
    }
    label296:
    g();
    label299:
    label300:
    return false;
  }
  
  protected boolean a(f.n_ paramn_, double paramDouble1, double paramDouble2)
  {
    return a(this.f, paramn_, paramDouble1, paramDouble2, i());
  }
  
  protected boolean a(f.p_ paramp_, double paramDouble1, double paramDouble2)
  {
    return a(this.f, paramp_, paramDouble1, paramDouble2, i());
  }
  
  protected jg a(f.p_ paramp_)
  {
    int m = f.Wb;
    Collection localCollection = f.f_.a(paramp_);
    if (m == 0) {
      if (localCollection.isEmpty())
      {
        if ((m != 0) || (h())) {
          return b(paramp_);
        }
        return null;
      }
    }
    return (jg)localCollection.iterator().next();
  }
  
  protected jg a(f.n_ paramn_)
  {
    int m = f.Wb;
    Collection localCollection = f.e_.a(paramn_);
    if (m == 0) {
      if (localCollection.isEmpty())
      {
        if ((m != 0) || (h())) {
          return b(paramn_);
        }
        return null;
      }
    }
    return (jg)localCollection.iterator().next();
  }
  
  protected jg b(f.p_ paramp_)
  {
    f localf = f.d(paramp_);
    jg localjg = localf.v();
    localf.a(localjg, paramp_, true, 0.0D);
    localf.b(localjg);
    return localjg;
  }
  
  protected jg b(f.n_ paramn_)
  {
    f localf = f.d(paramn_);
    jg localjg = localf.v();
    localf.a(localjg, paramn_, true, 0.0D);
    localf.b(localjg);
    return localjg;
  }
  
  public boolean h()
  {
    return this.j;
  }
  
  public void b(boolean paramBoolean)
  {
    this.j = paramBoolean;
  }
  
  public boolean i()
  {
    return this.k;
  }
  
  public void c(boolean paramBoolean)
  {
    this.k = paramBoolean;
  }
  
  public boolean a(ng paramng)
  {
    return h(paramng);
  }
  
  private boolean h(ng paramng)
  {
    int m = f.Wb;
    if ((m != 0) || (g(paramng))) {
      if (m != 0) {}
    }
    return a(paramng.a(), paramng.b());
  }
  
  public void b(ng paramng)
  {
    int m = f.Wb;
    boolean bool = f.Vb;
    if (m == 0) {
      if (h(paramng))
      {
        e locale = this.f.n();
        g localg = this.e.a();
        localg.z();
        try
        {
          localg.a(new bb(locale).l());
          ld localld = a(localg, locale);
          if (m == 0) {
            if (localld == this.f)
            {
              if (m == 0) {
                if (this.g > -1)
                {
                  a(this.e, this.f.b(this.g));
                  if (m != 0) {
                    break label318;
                  }
                  if (!bool) {
                    break label314;
                  }
                }
              }
              if (m == 0) {
                if (this.h != null)
                {
                  a(this.e, this.h);
                  if (m != 0) {
                    break label318;
                  }
                  if (!bool) {
                    break label314;
                  }
                }
              }
              if ((m == 0) && (this.i == null)) {
                break label314;
              }
              a(this.e, this.i);
              if (m != 0) {
                break label318;
              }
              if (!bool) {
                break label314;
              }
            }
          }
          if (m == 0)
          {
            if (!(localld instanceof f)) {
              break label314;
            }
            if (m != 0) {}
          }
          else if (this.g > -1)
          {
            a(this.e, localld.b(this.g));
            if (m != 0) {
              break label318;
            }
            if (!bool) {
              break label314;
            }
          }
          if (m == 0) {
            if (this.h != null)
            {
              a(this.e, m.a(this.h, (f)localld));
              if (m != 0) {
                break label318;
              }
              if (!bool) {
                break label314;
              }
            }
          }
          if ((m != 0) || (this.i != null)) {
            a(this.e, m.a(this.i, (f)localld));
          }
        }
        finally
        {
          label314:
          label318:
          localg.A();
        }
      }
    }
    d();
  }
  
  void g()
  {
    super.g();
    this.h = null;
    this.i = null;
  }
  
  private void a(pg parampg, f.p_ paramp_)
  {
    a(parampg, a(paramp_));
  }
  
  private void a(pg parampg, f.n_ paramn_)
  {
    a(parampg, a(paramn_));
  }
  
  private static void a(pg parampg, jg paramjg)
  {
    if ((f.Wb != 0) || (paramjg != null))
    {
      w localw = paramjg.b(paramjg.P()).l();
      parampg.b(paramjg, localw.a, localw.b, null, true);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.b.b

 * JD-Core Version:    0.7.0.1

 */